
import { axios } from '@/utils/request'
export function takeNameList(params) {
  return axios({
    url: '/school/call-records',
    method: 'post',
    data: params
  })
}


export function takeNameWeekList(params) { //目前用于  班级---历史点名
  return axios({
    url: '/school/call-records/rollcall',
    method: 'post',
    data: params
  })
}


export function takeNameInfo(id) { //实到人数列表  --点名详情
  return axios({
    url: '/school/call-records/'+id+'/student-list',
    method: 'post',
  })
}
export function newTakeNameInfo(parmas,id) { 
  return axios({
    url: '/school/call-records/'+id+'/students-in-class',
    method: 'post',
    data:parmas
  })
}



export function takeNameLinshiStudent(que,params) { //课次详情上课学员列表
  return axios({
    url: '/school/call-records/'+params+'/default-call-student',
    method: 'post',
    data:que
  })
}

export function addLinshiStudentList(params,id) { //班级点名--临时学员的列表
  return axios({
    url: '/school/classes/'+id+'/schedule-temporary-student',
    method: 'post',
    data: params
  })
}

export function mixStudents(params) { //班级点名--添加临时学员到指定课次//编辑课次也调这个接口
  return axios({
    url: '/school/adjust',
    method: 'post',
    data: params
  })
}
export function getStudents(params) { //班级点名--获取课表下的临时学员
  return axios({
    url: '/school/adjust/'+params,
    method: 'post',
  })
}
export function removeStudent(params){ //班级点名--移出临时学员
  return axios({
    url: '/school/adjust/remove',
    method: 'post',
    data: params
  })
}
export function delAdjust(params) { //删除课次
  return axios({
    url: '/school/adjust/delete',
    method: 'post',
    data: params
  })
}
export function changeClassTable(params) { //调课课表
  return axios({
    url: '/school/adjust/get-stu-class-schedule',
    method: 'post',
    data: params
  })
}

export function sureChangeClass(params) { //调课课表---选好了
  return axios({
    url: '/school/adjust/student-class-edit',
    method: 'post',
    data: params
  })
}
export function getLessonInfo(params,id) { //一周点名情况--查看详情
  return axios({
    url: '/school/class-schedules/'+id+'/week-info',
    method: 'post',
    data: params
  })
}
//点名获取Token
export function makeToken() { //一周点名情况--查看详情
  return axios({
    url: '/school/call-records/make-token',
    method: 'get',
  })
}